Android

FindViewByID returns null in android studio -SOLVED

FindViewByID returns null in android studio -SOLVED, someone asked me to explain?

I am getting findViewByID returns null while running android application. "Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference".

FindViewById returns null

Solution:

Make sure call findViewById() below the setContentView() function.

How to fix FindViewByID returns null in android studio? 

Post your comments / questions